{__NOLAYOUT__}<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=__CHARSET__">
<title>{$radio_title} - 电台列表 </title>
<META content="{$radio_keywords}" name=keywords>
<META content="{$radio_description}" name=description>
<base target="main">
<link href="__TMPL__/mini/css/list.css" rel="stylesheet" type="text/css" />
<script src="__TMPL__/mini/js/playlist.js" type="text/javascript"></script>
<script language="JavaScript"> 
document.oncontextmenu=new Function("event.returnValue=false;"); 
document.onselectstart=new Function("event.returnValue=false;"); 
</script>
</head>
<body>

{if app.req("id")=""}

    <DIV class="cp2" id="cp_0" onClick="showDanp(document.getElementById('kp_0'),0);">
    <font color=red>【推荐广播电台】</font></DIV>
    <DIV id="kp_0" style="display: block">
    
    {$gtop sql="select * from #@radio where status=1 and istop=1 order by id asc"}
          <DIV class="ce">&nbsp;&nbsp;<a href="{:U('radio:mini/radio?id='& gtop('id'))}" 
          title="电台: {$gtop("name")}&#13;描述: {$gtop("content")}
        {$gtop("name")}">
        {if gtop("color")<>"#000000"}
        <font color='{$gtop("color")}' c="{$gtop("color")}">{$gtop("name")}</font>
        {else}
        {$gtop("name")}
        {/if}
        </a></div>
    {/$gtop}
    
    </DIV>

	{$rssc sql="select id,name from #@class where module_id=($module_id) and typeid=0 and pid<>0 AND pid<>($topid) and status=1 order by ordid asc, id asc"}
    {asp cid=rssc("id") }
    
    <DIV class="cp1" id="cp_{$rssc("id")}" 
    onClick="showDanp(document.getElementById('kp_{$rssc("id")}'),{$rssc("id")});">
    {$rssc("name")}<font color="#00BBFF">({@count sql="select * from #@radio where status=1 and is_del=0 and ','+[classid]+',' like '%,($cid),%' order by ordid asc,id asc"})</font></DIV>
    <DIV id="kp_{$rssc("id")}" style="display: none">
    
    {$radio sql="select * from #@radio where status=1 and is_del=0 and ','+[classid]+',' like '%,($cid),%' order by ordid asc,id asc"}
      <DIV class="ce">&nbsp;<a href="res/radio/radio.asp?id={$radio("id")}" 
      title="电台: {$radio("name")}&#13;描述: {$radio("content")}">
        {if radio("color")<>"#000000"}
        <font color='{$radio("color")}' c="{$radio("color")}">{$radio("name")}</font>
        {else}
        {$radio("name")}
        {/if}
    </a></div>
    {/$radio}
    
    </DIV>
    
    {/$rssc}

{else}

    {asp ttid = CLng(app.req("id"))}
	{$rssc2 sql="select id,name from #@class where module_id=($module_id) and typeid=0 and pid=($ttid) and status=1 order by ordid asc, id asc"}
    {asp cid = rssc2("id") }
    
    <DIV class="cp1" id="cp_{$rssc2("id")}" 
    onClick="showDanp(document.getElementById('kp_{$rssc2("id")}'),{$rssc2("id")});">
    {$rssc2("name")}<font color="#00BBFF">({@count sql="select * from #@radio where status=1 and is_del=0 and ','+[classid]+',' like '%,($cid),%' order by ordid asc,id asc"})</font></DIV>
    <DIV id="kp_{$rssc2("id")}" style="display: none">

        {$radio2 sql="select * from #@radio where status=1 and is_del=0 and ','+[classid]+',' like '%,($cid),%' order by ordid asc,id asc"}
          <DIV class="ce">&nbsp;<a href="res/radio/radio.asp?id={$radio2("id")}" 
          title="电台: {$radio2("name")}&#13;描述: {$radio2("content")}">
            {if radio2("color")<>"#000000"}
            <font color='{$radio2("color")}' c="{$radio2("color")}">{$radio2("name")}</font>
            {else}
            {$radio2("name")}
            {/if}
        </a></div>
        {/$radio2}
    
    </DIV>

	{/$rssc2}

{/if}

<DIV class="cp2" id="cp_999999999" onClick="showDanp(document.getElementById('kp_999999999'),999999999);">
<font color=yellow>热门点击电台(前30)</font></DIV>
<DIV id="kp_999999999" style="display: block">

{$ghot sql="select top 30 * from #@radio where status=1 and is_del=0 order by hits desc, id asc"}
	  <DIV class="ce">&nbsp;&nbsp;<a href="{:U('radio:mini/radio?id='& ghot('id'))}" 
	  title="电台: {$ghot("name")}&#13;点击: {$ghot("hits")}次">{$ghot("name")}</a></div>
{/$ghot}

</DIV>
<div class="ce" style="height:40">
</div>
<div style="display:none">
	{$statistics_code}
</div>
</body>
</html>
